package com.dckj.auto.common.utils;

import javax.servlet.http.HttpServletRequest;

public class SessionUtil {

    public static Integer userType(HttpServletRequest request){
        return (Integer) request.getSession().getAttribute(PublicCode.USER_TYPE);
    }


    public static  String userId(HttpServletRequest request){
        return (String)request.getSession().getAttribute(PublicCode.USER_ID);
    }


}
